class User {
  User({
      this.id, 
      this.nickname, 
      this.username, 
      this.avatarAddr,
      this.accessToken, 
      this.refreshToken,});

  User.fromJson(dynamic json) {
    id = json['id'];
    nickname = json['nickname'];
    username = json['username'];
    avatarAddr = json['avatarAddr'];
    accessToken = json['accessToken'];
    refreshToken = json['refreshToken'];
  }
  String? id;
  String? nickname;
  String? username;
  String? avatarAddr;
  String? accessToken;
  String? refreshToken;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['nickname'] = nickname;
    map['username'] = username;
    map['avatarAddr'] = avatarAddr;
    map['accessToken'] = accessToken;
    map['refreshToken'] = refreshToken;
    return map;
  }

}